package org.wyz.Singleton;

import java.util.Date;

public class Person {
    public String name;
    public int age;
    public int height;
    public Date birth;
    public int weight;
    public String intro;
    public String job;

    public Person() {

    }

    public static class Builder {
        private Person p;
        public Builder() {
            p = new Person();
        }

        public Builder setName(String name){
            p.name = name;
            return this;
        }

        public Builder setAge(int age){
            p.age = age;
            return this;
        }

        public Person build() {
            return p;
        }
    }



    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", birth=" + birth +
                ", weight=" + weight +
                ", intro='" + intro + '\'' +
                ", job='" + job + '\'' +
                '}';
    }
}
